<{include file="header.html"}>
<script type="text/javascript">
function submitFilter()
{document.frm_filter.submit();
	return true;
}
getDatePicker('START_DATE');
getDatePicker('END_DATE');
</script>
<div id="content">
    <div class="container">
        <div class="main-content">
            <h1 class="title"><{$smarty.const._LB_BOOKING_MANAGEMENT|utf8_escape_html}></h1>
			<br />
			<{assign var=user value=$bookingData.USER_INFO}>
			<{assign var=techData value=$bookingData.TDATA}>
            <table class="reporting" border="0" width="100%" style="border-collapse: collapse;">
                <tr style="text-align: center;font-weight: bold;">
					<th width="200px"><{$smarty.const._LB_BOOKING_INFO|utf8_escape_html}></th>
                    <th><{$smarty.const._LB_SERVICES|utf8_escape_html}></th>
					<th width="130"><{$smarty.const._LB_ACTION|utf8_escape_html}></th>
                </tr>
                <{foreach from=$techData key=dbID item=data}>
				<{assign var=techTitle value=$data.TITLE}>
				<{assign var=sData value=$data.SDATA}>
				<tr>
					<td colspan="4">
						<table width="100%">
							<tr>
								<td style="width: 200px">
									<{if $data.TITLE != ""}>
									<{$smarty.const._LB_TECHNICIAN|utf8_escape_html}>&nbsp;:&nbsp;<{$data.TITLE|utf8_escape_html}><br />
									<{/if}>
									<{$smarty.const._LB_BOOKING_DATE|utf8_escape_html}>&nbsp;:&nbsp;<{$data.BOOKING_DATE|date_format:"%d/%m/%Y %H:%M"}>
								</td>
								<td >
									<{foreach from=$sData item=service}>
										<{$service.TITLE|utf8_escape_html}><br />
									<{/foreach}>
								</td>
								<td style="width: 100px">
									<a href="<{$smarty.const.APPLICATION_URL_FO}>/member/booking_adjust/?id=<{$bookingID}>&bdID=<{$dbID}>"><{$smarty.const._LB_ADJUST}></a>
									| <a onclick="return confirm('<{$smarty.const._MSG_BOOKING_DELETE_CONFIRM|utf8_escape_html}>')" href="<{$smarty.const.APPLICATION_URL_FO}>/member/booking_detail/?id=<{$bookingID}>&bdID=<{$dbID}>&act=<{$smarty.const.ACT_DELETE}>"><{$smarty.const._LB_DELETE}></a>
								</td>
							</tr>
						</table>
						
					</td>
				</tr>
				<tr><td colspan="4"><hr style="border-top: 0px;border-bottom: #911F7E 1px solid;" ></td></tr>
				<{/foreach}>
				<tr><td colspan="4" style="text-align: center">
						<input class="btn" value="<{$smarty.const._LB_BACK|utf8_escape_html}>" id="btnBack" type="button" onclick="location.href='<{$backlink}>'"/>
				</td></tr>
            </table>
        </div>
        <div class="sidebar">
            <{include file="right_business_hours.html"}>
			<{include file="right_service.html"}>
        </div><!--End .sidebar-->
    </div>
</div>
<{include file="footer.html"}> 